from pydantic import BaseModel, EmailStr


class LoginRequest(BaseModel):
    username: str
    password: str


class LoginData(BaseModel):
    username: str
    role: str
    token: str


class SuccessResponse(BaseModel):
    code: int = 0
    data: LoginData


class ErrorResponse(BaseModel):
    code: int
    error: str


class addUserRequest(BaseModel):
    email: EmailStr
    role: str


class updataUserRequest(BaseModel):
    email: EmailStr
    role: str


class UpdateUserStatusRequest(BaseModel):
    status: int


class ChangePasswordRequest(BaseModel):
    oldPassword: str
    newPassword: str


class profileResquest(BaseModel):
    nickname: str
    bio: str
